﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="Common_QueryControl" CodeBehind="QueryControl.ascx.cs" %>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Panel ID="PanQuery" runat="server">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td align="right">
                            <asp:Label ID="labProductName" runat="server" Text="通用名："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                            <asp:CheckBox ID="cbProductNameLike" runat="server" Text="精确" ToolTip="按药品通用名精确查询"/>
                        </td>
                        <td align="right">
                            <asp:Label ID="labMedicineModel" runat="server" Text="剂型："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtMedicineModel" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Label ID="labPlanName" runat="server" Text="采购单："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtPlanName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblPinYinCode" runat="server" Text="拼音码："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtPinYinCode" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Label ID="labPack" runat="server" Text="采购规格："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtPack" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Label ID="labUnit" runat="server" Text="采购单位："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="labCompanyName_SC" runat="server" Text="生产企业："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtCompanyName_SC" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Label ID="labHospitalName" runat="server" Text="医院名称："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Label ID="labSort" runat="server" Text="排序方式："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlFiled" runat="server">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlDirection" runat="server">
                                <asp:ListItem Selected="True" Value="ASC">升序</asp:ListItem>
                                <asp:ListItem Value="DESC">降序</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <%--药品编号：--%>
                        </td>
                        <td align="left">
                            <%--<asp:TextBox ID="txtProductID" runat="server"></asp:TextBox>--%>
                            <asp:HiddenField runat="server" ID="txtProductID" />
                        </td>
                        <td align="right">
                            <%--<asp:Label ID="labHospitalID" runat="server" Text="医院编号："></asp:Label>--%>
                        </td>
                        <td align="left">
                            <%-- <asp:TextBox ID="txtHospitalID" runat="server"></asp:TextBox>--%>
                            <asp:HiddenField runat="server" ID="txtHospitalID" />
                        </td>
                        <td align="right">
                            <%--<asp:Label ID="labCompanyID_PS" Text="配送企业编号：" runat="server"></asp:Label>--%>
                        </td>
                        <td align="left">
                            <%--<asp:TextBox ID="txtCompanyID_PS" runat="server"></asp:TextBox>--%>
                            <asp:HiddenField runat="server" ID="txtCompanyID_PS" />
                        </td>
                    </tr>
                    <asp:Literal ID="ltlAdvance" runat="server" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                    <tr>
                        <td align="right">
                            <asp:Label ID="labCompanyName_PS" runat="server" Text="配送企业："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Label ID="labSortSource" runat="server" Text="采购类型："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlSortSource" runat="server">
                                <asp:ListItem Selected="True" Value="">全部</asp:ListItem>
<%--                                修改dropdownlist的查询条件
                                2011.04.18 张雄 modify--%>
                                <asp:ListItem Value="0">日常采购</asp:ListItem>
                                <asp:ListItem Value="1">临时采购</asp:ListItem>
                                <asp:ListItem Value="2">应急采购</asp:ListItem>                                
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Label ID="labPlanTime" runat="server" Text="采购时间："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                Width="63px"></asp:TextBox>-<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                    Width="63px"></asp:TextBox>
                        </td>
                    </tr>
                    
                        <%--<td align="right">
                            <asp:Label ID="labArea" runat="server" Text="所在地区："></asp:Label>
                        </td>
                        <td align="left">
                            <%--<asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="ddlCity_SelectedIndexChanged">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlCountry" runat="server">
                            </asp:DropDownList>--%>
                            <uc3:areacontrol ID="AreaControl1" runat="server" />
                        </td>
                        <td align="right">
                            <asp:Label ID="labSortName" runat="server" Text="药品分类："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlSortName" runat="server" Width="180px">
                            </asp:DropDownList>
                        </td>
                      
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <%--                    <tr>
                    </tr>--%>
                    <tr>
                        <td align="right">
                            &nbsp;
                        </td>
                        <td align="left">
                            <%--<asp:DropDownList ID="ddlProvice" runat="server">
                                <asp:ListItem Value="">所在省</asp:ListItem>
                            </asp:DropDownList>--%>
                            <%-- &nbsp;<asp:DropDownList ID="ddlCountry" runat="server" Visible="false">
                                <asp:ListItem Value="">所在区县</asp:ListItem>
                            </asp:DropDownList>--%>
                        </td>
                        <td align="right">
                            <%--<asp:Label ID="labOrderID"  runat="server" Text="订单编号："></asp:Label>--%>
                        </td>
                        <td align="left">
                            <%--<asp:TextBox ID="txtOrderID" runat="server"></asp:TextBox>--%><asp:HiddenField
                                runat="server" ID="txtOrderID" />
                        </td>
                        <td align="right">
                            <%--<asp:Label ID="labExpensive"  Text="是否贵重药品" runat="server"></asp:Label>--%>
                        </td>
                        <td align="left">
                            <%--<asp:DropDownList ID="ddlExpensive" runat="server" >
                            <asp:ListItem Selected="True" Value="">全部</asp:ListItem>
                            <asp:ListItem Value="true">是</asp:ListItem>
                            <asp:ListItem Value="false">否</asp:ListItem>
                        </asp:DropDownList>--%>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="100px" valign="middle" align="center">
                <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" /><br />
                <asp:LinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                    Text="高级查询"></asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Panel>
